/* GUI CONVERTED from rsschckc.p (converter v1.76) Wed Dec 12 05:26:56 2001 */
/* rsschckc.p - Supplier Schedules - Check for Shipper in selected db         */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.3.1.2 $                                                       */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 7.3    LAST MODIFIED: 02/02/96      BY: kjm *G1LT*               */
/* REVISION: 8.6    LAST MODIFIED: 05/20/98      BY: *K1Q4* Alfred Tan        */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00      BY: *N0KP* Mark Brown        */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* $Revision: 1.3.1.2 $    BY: Jean Miller           DATE: 12/10/01  ECO: *P03H*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* CHECK FOR EXISTENCE OF A SHIPPER IN SELECTED DATABASE */

define input  parameter ponbr      as character.
define input  parameter podline    as integer.
define input  parameter poshipfrom as character.
define output parameter shipper_found as integer.
define output parameter save_abs like abs_id.

for each abs_mstr where
         abs_shipfrom = poshipfrom and
         abs_dataset = "pod_det" and
         abs_order = ponbr and
         abs_line = string(podline)
no-lock:
   shipper_found = shipper_found + 1.
   if shipper_found = 1 then
      save_abs = abs_par_id.
end.
